package com.hins.demo.transfer;

import com.hins.component.dto.Response;
import com.hins.demo.api.TransferServiceI;
import com.hins.demo.dto.TransferUpdateCmd;
import com.hins.demo.transfer.executor.TransferUpdateCmdExe;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * Description: 转账
 *
 * @author wenjiaqi
 * @date 2021/5/14 15:19
 */
@Service
public class TransferServiceImpl implements TransferServiceI {

    @Resource
    private TransferUpdateCmdExe transferUpdateCmdExe;

    @Override
    public Response transfer(TransferUpdateCmd transferUpdateCmd) {
        return transferUpdateCmdExe.execute(transferUpdateCmd);
    }
}
